Optimal. Leaf size=306 \[ \frac {2 a \sin (c+d x) \sqrt {\sec (c+d x)}}{d \left (a^2-b^2\right ) \sqrt {a+b \cos (c+d x)}}+\frac {2 \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{a d \sqrt {a+b} \sqrt {\sec (c+d x)}}-\frac {2 \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{a d \sqrt {a+b} \sqrt {\sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.42, antiderivative size = 306, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4222, 2794, 2795, 2816, 2994} \[ \frac {2 a \sin (c+d x) \sqrt {\sec (c+d x)}}{d \left (a^2-b^2\right ) \sqrt {a+b \cos (c+d x)}}+\frac {2 \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{a d \sqrt {a+b} \sqrt {\sec (c+d x)}}-\frac {2 \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{a d \sqrt {a+b} \sqrt {\sec (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2794
Rule 2795
Rule 2816
Rule 2994
Rule 4222
Rubi steps
\begin {align*} \int \frac {1}{(a+b \cos (c+d x))^{3/2} \sqrt {\sec (c+d x)}} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\cos (c+d x)}}{(a+b \cos (c+d x))^{3/2}} \, dx\\ &=\frac {2 a \sqrt {\sec (c+d x)} \sin (c+d x)}{\left (a^2-b^2\right ) d \sqrt {a+b \cos (c+d x)}}-\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+b \cos (c+d x)}}{\cos ^{\frac {3}{2}}(c+d x)} \, dx}{a^2-b^2}\\ &=\frac {2 a \sqrt {\sec (c+d x)} \sin (c+d x)}{\left (a^2-b^2\right ) d \sqrt {a+b \cos (c+d x)}}-\frac {\left (a \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1+\cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{a^2-b^2}-\frac {\left ((-a+b) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx}{a^2-b^2}\\ &=-\frac {2 \sqrt {\cos (c+d x)} \csc (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{a \sqrt {a+b} d \sqrt {\sec (c+d x)}}+\frac {2 \sqrt {\cos (c+d x)} \csc (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{a \sqrt {a+b} d \sqrt {\sec (c+d x)}}+\frac {2 a \sqrt {\sec (c+d x)} \sin (c+d x)}{\left (a^2-b^2\right ) d \sqrt {a+b \cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 4.02, size = 235, normalized size = 0.77 \[ \frac {\sec ^2\left (\frac {1}{2} (c+d x)\right ) \left ((a-b) \sin (c+d x) \sqrt {\frac {\cos (c+d x)}{\cos (c+d x)+1}} \sqrt {\frac {a+b \cos (c+d x)}{(a+b) (\cos (c+d x)+1)}}-(a+b \cos (c+d x)) F\left (\sin ^{-1}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {b-a}{a+b}\right )+(a+b \cos (c+d x)) E\left (\sin ^{-1}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {b-a}{a+b}\right )\right )}{d \left (a^2-b^2\right ) \sqrt {\frac {\cos (c+d x)}{\cos (c+d x)+1}} \sqrt {\sec (c+d x)} \sqrt {a+b \cos (c+d x)} \sqrt {\frac {a+b \cos (c+d x)}{(a+b) (\cos (c+d x)+1)}}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.52, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\sqrt {b \cos \left (d x + c\right ) + a}}{{\left (b^{2} \cos \left (d x + c\right )^{2} + 2 \, a b \cos \left (d x + c\right ) + a^{2}\right )} \sqrt {\sec \left (d x + c\right )}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \sqrt {\sec \left (d x + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.29, size = 811, normalized size = 2.65 \[ \frac {2 \left (\sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {a +b \cos \left (d x +c \right )}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}\, \EllipticF \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) \cos \left (d x +c \right ) \sin \left (d x +c \right ) a +\EllipticF \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) \cos \left (d x +c \right ) \sin \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {a +b \cos \left (d x +c \right )}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}\, b -\sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {a +b \cos \left (d x +c \right )}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}\, \EllipticE \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) \cos \left (d x +c \right ) \sin \left (d x +c \right ) a -\sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {a +b \cos \left (d x +c \right )}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}\, \EllipticE \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) \cos \left (d x +c \right ) \sin \left (d x +c \right ) b +\sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {a +b \cos \left (d x +c \right )}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}\, \EllipticF \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) a \sin \left (d x +c \right )+\sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {a +b \cos \left (d x +c \right )}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}\, \EllipticF \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) b \sin \left (d x +c \right )-\sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {a +b \cos \left (d x +c \right )}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}\, \EllipticE \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) a \sin \left (d x +c \right )-\sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {a +b \cos \left (d x +c \right )}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}\, \EllipticE \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) b \sin \left (d x +c \right )-a \left (\cos ^{2}\left (d x +c \right )\right )+\left (\cos ^{2}\left (d x +c \right )\right ) b +a \cos \left (d x +c \right )-b \cos \left (d x +c \right )\right ) \sqrt {\frac {1}{\cos \left (d x +c \right )}}}{d \sin \left (d x +c \right ) \sqrt {a +b \cos \left (d x +c \right )}\, \left (a -b \right ) \left (a +b \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \sqrt {\sec \left (d x + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {1}{\sqrt {\frac {1}{\cos \left (c+d\,x\right )}}\,{\left (a+b\,\cos \left (c+d\,x\right )\right )}^{3/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\left (a + b \cos {\left (c + d x \right )}\right )^{\frac {3}{2}} \sqrt {\sec {\left (c + d x \right )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________